<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Services\WxPayService;
use App\Http\Controllers\Controller;

class WxPayController extends Controller
{
    public function getTest(Request $request){
        // 获取响应内容
        $notifyUrl = config("app.url") . '/weixin/recharge';
        $result = WxPayService::h5Pay('','','',$request->ip(),$notifyUrl);
        return $this->resJson(200, '成功');
    }
}
